package com.xli.dto.result;

import cn.hutool.json.JSONUtil;
import com.alibaba.fastjson2.JSONObject;
import com.xli.dto.result.status.Status;
import lombok.Data;

@Data
public class ResultVO<T> {

    private String code;

    private String msg;

    private T data;

    public ResultVO(Status status, String msg) {
        this.code = status.getCode();
        this.msg = msg;
    }

    public ResultVO(Status status, String msg, T data) {
        this.code = status.getCode();
        this.msg = msg;
        this.data = data;
    }
}
